<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
namespace Agp\CoreBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;

/**
 * Agp\CoreBundle\Entity\Componente
 *
 * @ORM\Table(name="componente")
 * @ORM\Entity(repositoryClass="Agp\CoreBundle\Repository\ComponenteRepository")
 */
class Componente
{
    /**
     * @var integer $codAtendente
     *
     * @ORM\Column(name="cod_componente", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    protected $codComponente;
    
    /**
     * @var string $descricao
     * 
     * @ORM\Column(name="descricao", type="string", length=42, nullable=false)
     * 
     */
    protected $descricao;
    
    /**
     * @var string $tipo
     * 
     * @ORM\Column(name="tipo", type="string", length=42, nullable=false)
     * 
     */
    protected $tipo;
    
    /**
     * @var string $obrigatorio
     * 
     * @ORM\Column(name="obrigatorio", type="boolean", nullable=true)
     * 
     */
    protected $obrigatorio;

    public function getCodComponente() {
        return $this->codComponente;
    }

    public function setCodComponente($codComponente) {
        $this->codComponente = $codComponente;
    }
    
    public function getDescricao() {
        return $this->descricao;
    }

    public function setDescricao($descricao) {
        $this->descricao = $descricao;
    }

    public function getObrigatorio() {
        return $this->obrigatorio;
    }

    public function setObrigatorio($obrigatorio) {
        $this->obrigatorio = $obrigatorio;
    }
    
    public function getTipo() {
        return $this->tipo;
    }

    public function setTipo($tipo) {
        $this->tipo = $tipo;
    }
 
}

?>
